home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 428_02 / libsrc / wclreol.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-13  |  651 b   |  30 lines

  1. /*
  2. ** wclreol.c
  3. **
  4. ** Pictor, Version 1.51, Copyright (c) 1992-94 SoftCircuits
  5. ** Redistributed by permission.
  6. */
  7.  
  8. #include <stdio.h>
  9. #include "pictor.h"
  10.  
  11.  
  12. /*
  13. ** Clears from the current window pane column to the end of
  14. ** the current window pane line.
  15. */
  16. void wcleareol(void)
  17. {
  18.     if(_PL_winhead != NULL) {
  19.         if((unsigned)_CURR_WPANE.row < (unsigned)getwrows() &&
  20.             (unsigned)_CURR_WPANE.column < (unsigned)getwcols()) {
  21.  
  22.             setvpos(_CURR_WPANE.top + _CURR_WPANE.row + 1,
  23.                 _CURR_WPANE.left + _CURR_WPANE.column + 1);
  24.             vcolor(_CURR_WPANE.color);
  25.             vrepc(' ',getwcols() - _CURR_WPANE.column);
  26.         }
  27.     }
  28.  
  29. } /* wcleareol */
  30.